From b0b0525d195f6dabb87b62ba137cb0f060927bea Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Sat, 16 Jul 2011 09:18:21 +0100 Subject: [PATCH] x86: fix guest migration after c/s 20892:d311d1efc25e Guests would not manage to run successfully after being migrated to a host having sufficiently much more memory than the host they were originally started on. Subsequently the plan is to re-enable the changes behavior under the control of a guest kernel announced feature flag. Signed-off-by: Jan Beulich Acked-by: Ian Campbell --- xen/arch/x86/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 7e4473c822..35c5fc242c 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -4861,7 +4861,7 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg) .max_mfn = MACH2PHYS_NR_ENTRIES - 1 }; - if ( !mem_hotplug ) + if ( !mem_hotplug && current->domain == dom0 ) mapping.max_mfn = max_page - 1; if ( copy_to_guest(arg, &mapping, 1) ) return -EFAULT; -- 2.30.2